package com.video.moderation.entity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Data;

import java.util.Date;

@Entity
@Table(name = "video_info")
@Data
public class VideoInfo {

    @Id
    @Column(name = "video_id")
    private String videoId;

    @Column(name = "user_id")
    private Long userId;

    @Column(name = "type_id")
    private Integer typeId;

    @Column(name = "year_id")
    private Integer yearId;

    @Column(name = "video_title")
    private String videoTitle;

    @Column(name = "url")
    private String url;

    @Column(name = "thumbnail")
    private String thumbnail;

    @Column(name = "description")
    private String description;

    @Column(name = "comments_count")
    private Long commentsCount;

    @Column(name = "play_count")
    private Long playCount;

    @Column(name = "status")
    private String status;

    @Column(name = "is_hide")
    private String isHide;

    @Column(name = "publish_time")
    private Date publishTime;

    @Column(name = "modify_time")
    private Date modifyTime;
}
